﻿<Window x:Class="ISRecord.View.Views.Shell"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:p="clr-namespace:ISRecord.View.Properties"
        FlowDirection="RightToLeft" MinWidth="400" MinHeight="400"
        WindowState="Maximized" Title="{x:Static p:Resources.AppCaptionLbl}"
        FontFamily="{Binding Source={x:Static p:Settings.Default}, Path=Font}"
        FontSize="{Binding Source={x:Static p:Settings.Default}, Path=FontSize}"
        Loaded="ShellLoaded" Closing="ShellClosing">
    <Window.Resources>
        <ResourceDictionary Source="/Resources/ShellResources.xaml"/>
    </Window.Resources>
    <DockPanel>
        <DockPanel DockPanel.Dock="Top" KeyboardNavigation.TabNavigation="None">
            <Menu KeyboardNavigation.TabNavigation="Cycle">
                <MenuItem Header="{x:Static p:Resources.FileMenu}">
                    <MenuItem Header="{Binding Path=OutboxRecordCommand.DisplayName}" Command="{Binding Path=OutboxRecordCommand.Command}"/>
                    <Separator/>
                    <MenuItem Header="E_xit" Command="{Binding Path=CloseCommand}"/>
                </MenuItem>
                <MenuItem Header="{x:Static p:Resources.QueryMenu}">
                    <MenuItem Header="{Binding Path=AllOutboxesCommand.DisplayName}" Command="{Binding Path=AllOutboxesCommand.Command}"/>
                </MenuItem>
                <MenuItem Header="{x:Static p:Resources.ToolsMenu}">
                    <MenuItem Header="{Binding Path=BulkOutboxesCommand.DisplayName}" Command="{Binding Path=BulkOutboxesCommand.Command}"/>
                    <MenuItem Header="{Binding Path=SettingsCommand.DisplayName}" Command="{Binding Path=SettingsCommand.Command}"/>
                </MenuItem>
            </Menu>
        </DockPanel>
        <Grid Margin="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="4" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0" Style="{StaticResource MainBorderStyle}" Width="170">
                 <HeaderedContentControl Content="{Binding Path= CommonTaksCommands}" 
                                         ContentTemplate="{StaticResource CommandsTemplate}" 
                                         Style="{StaticResource MainHCCStyle}"/>
            </Border>
            <Border Grid.Column="2" Style="{StaticResource MainBorderStyle}">
                <HeaderedContentControl Content="{Binding Path=Workspaces}"
                                        ContentTemplate="{StaticResource WorkspacesTemplate}"
                                        Style="{StaticResource MainHCCStyle}"/>
            </Border>
        </Grid>
    </DockPanel>
</Window>
